﻿
;open means this service has open port to the internet

;there are several sections in this configuration file
;tcp_bridge service will go through the sections from connection1 to connectionN

[connection1]
;name is just the identifier of this connection
;there are two kinds of connections, one contains target value, the other does not
;when a section contains target value, it takes duty to do the real bridging work
name=i
;type is incoming or outgoing,
;incoming means this connection is listening on a specific port and wait for incoming connections
;outgoing means this connection will generate connections to other machines / services
type=incoming
;if it's an incoming connection, the host value would be ignored
;the port is the port listening for incoming connections, or the port of target machine for outgoing connections
port=80
;target is the name of another connection, to bridge the data to
;attention, you can only set target value in one of the pair of connections
target=o
;the bytes we should send in one second,
;if the connection cannot send enough data in one second, it will be dropped
;set to 0 means there is no such limitation
send_rate_sec=1
;the bytes we should receive in one second
receive_rate_sec=1
;the idle time before we shutdown this connection
max_lifetime_ms=2000
;max half open connecting count
max_connecting=128

[connection2]
name=o
type=incoming
;token is exchanged when a connection has been generated
;if the client <the one with outgoing as type> cannot provide the right token, the connection will be dropped
token=http.token
port=180
send_rate_sec=0
receive_rate_sec=0
